package com.example.certificate.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.example.certificate.common.SuperEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author hao
 * @since 2022-03-10 14:03:12
 */
@Getter
@Setter
@TableName("orderFrom")
@ApiModel(value = "OrderFrom对象", description = "")
public class OrderFrom extends SuperEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @TableField("user_id")
    private String userId;

    @TableField("total_amount")
    private Float totalAmount;

    @TableField("detail_desc")
    private String detailDesc;

    @TableField("addr")
    private String addr;

    @ApiModelProperty("1 已付款 0 未付款 2已发货 3已收货 4 退款")
    @TableField("status")
    private Integer status;

    @TableField(exist = false)
    private List<ProductInfo> lists;

    @TableField(exist = false)
    private CustomerAddr customerAddr;

    @TableField("user_name")
    private String userName;

    @TableField("phone")
    private String phone;

    @TableField("belonger_id")
    private String belongerId;

    @TableField("start_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date startTime;
}
